import sys

from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication

from ui2 import Ui_MainWindow

import Ico

# 主线程销毁, 子线程销毁
# 或
# t = threading.Thread(target=MyServer_start)
# t.setDaemon(True)
# t.start()  # 告诉操作系统开一个线程
# t.join() # 等待进程完成
app = QApplication(sys.argv)
app.setWindowIcon(QIcon(':/Ico.ico'))
main = Ui_MainWindow()
main.show()

sys.exit(app.exec_())